﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="View.aspx.cs" Inherits="Staff_View" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../Style/jquery.ui.datepicker.css" rel="stylesheet" type="text/css" />
    <link href="../Style/style.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.8.2.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../Scripts/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="../Scripts/popup.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $("#txtHireDate").datepicker({
                altField: "#alternate",
                altFormat: "DD, d MM, yy"
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="scriptManager" runat="server">
        </asp:ScriptManager>
		<asp:Label ID="Label1" runat="server" Text="Staff Details"></asp:Label>
    <br />
        <div class="gridArea">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:GridView 
                        ID="gvStaff"
                        GridLines="None"
                        AllowPaging="true"
                        CssClass="staffGrid"
                        PagerStyle-CssClass="pgr"
                        AlternatingRowStyle-CssClass="alt"
                        runat="server" EnableSortingAndPagingCallbacks="True" 
                        onpageindexchanged="gvStaff_PageIndexChanged" 
                        onpageindexchanging="gvStaff_PageIndexChanging" 
                        onrowdatabound="gvStaff_RowDataBound">
                        <AlternatingRowStyle CssClass="alt" />
                        <Columns>
                            <asp:HyperLinkField DataNavigateUrlFields="ID" 
                                DataNavigateUrlFormatString="edit.aspx?id={0}" Text="Edit" />
                         </Columns>
                        <PagerStyle CssClass="pgr" />
                    </asp:GridView>
                </ContentTemplate>
            </asp:UpdatePanel>
            <a href="Add.aspx">Add New Staff</a>      
        </div>
    </form>
</body>
</html>
